package com.ruoyi.project.park.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.park.mapper.BizFeeStandardMapper;
import com.ruoyi.project.park.domain.BizFeeStandard;
import com.ruoyi.project.park.service.IBizFeeStandardService;

/**
 * 停车收费标准Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-08
 */
@Service
public class BizFeeStandardServiceImpl implements IBizFeeStandardService 
{
    @Autowired
    private BizFeeStandardMapper bizFeeStandardMapper;

    /**
     * 查询停车收费标准
     * 
     * @param id 停车收费标准主键
     * @return 停车收费标准
     */
    @Override
    public BizFeeStandard selectBizFeeStandardById(String id)
    {
        return bizFeeStandardMapper.selectBizFeeStandardById(id);
    }

    /**
     * 查询停车收费标准列表
     * 
     * @param bizFeeStandard 停车收费标准
     * @return 停车收费标准
     */
    @Override
    public List<BizFeeStandard> selectBizFeeStandardList(BizFeeStandard bizFeeStandard)
    {
        return bizFeeStandardMapper.selectBizFeeStandardList(bizFeeStandard);
    }

    /**
     * 新增停车收费标准
     * 
     * @param bizFeeStandard 停车收费标准
     * @return 结果
     */
    @Override
    public int insertBizFeeStandard(BizFeeStandard bizFeeStandard)
    {
        bizFeeStandard.setCreateTime(DateUtils.getNowDate());
        return bizFeeStandardMapper.insertBizFeeStandard(bizFeeStandard);
    }

    /**
     * 修改停车收费标准
     * 
     * @param bizFeeStandard 停车收费标准
     * @return 结果
     */
    @Override
    public int updateBizFeeStandard(BizFeeStandard bizFeeStandard)
    {
        bizFeeStandard.setUpdateTime(DateUtils.getNowDate());
        return bizFeeStandardMapper.updateBizFeeStandard(bizFeeStandard);
    }

    /**
     * 批量删除停车收费标准
     * 
     * @param ids 需要删除的停车收费标准主键
     * @return 结果
     */
    @Override
    public int deleteBizFeeStandardByIds(String[] ids)
    {
        return bizFeeStandardMapper.deleteBizFeeStandardByIds(ids);
    }

    /**
     * 删除停车收费标准信息
     * 
     * @param id 停车收费标准主键
     * @return 结果
     */
    @Override
    public int deleteBizFeeStandardById(String id)
    {
        return bizFeeStandardMapper.deleteBizFeeStandardById(id);
    }
}
